projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d243630
)
spi: altera_spi: Use BIT macro
author
Jagan Teki
<
[email protected]
>
Tue, 27 Oct 2015 17:39:56 +0000
(23:09 +0530)
committer
Jagan Teki
<
[email protected]
>
Wed, 28 Oct 2015 08:23:58 +0000
(13:53 +0530)
Replace numerical bit shift with BIT macro
in altera_spi
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Cc: Marek Vasut <
[email protected]
>
Acked-by: Thomas Chou <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
Signed-off-by: Jagan Teki <
[email protected]
>
drivers/spi/altera_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/altera_spi.c
b/drivers/spi/altera_spi.c
index ff3512a0f6f73892843165a4c3b6e62932bbb5e3..3dbcfaa4ca2b8123448b3db3889ea90a05978eee 100644
(file)
--- a/
drivers/spi/altera_spi.c
+++ b/
drivers/spi/altera_spi.c
@@
-38,8
+38,8
@@
struct altera_spi_priv {
struct altera_spi_regs *regs;
};
-#define ALTERA_SPI_STATUS_RRDY_MSK
(1 <<
7)
-#define ALTERA_SPI_CONTROL_SSO_MSK
(1 <<
10)
+#define ALTERA_SPI_STATUS_RRDY_MSK
BIT(
7)
+#define ALTERA_SPI_CONTROL_SSO_MSK
BIT(
10)
static void spi_cs_activate(struct udevice *dev, uint cs)
{